package com.toolkit.util;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author qdl 同城url配置
 * @descripton TODO
 * @Date 2024/1/15 15:18
 */
@Component
@ConfigurationProperties(prefix = "tongcheng")
@Data
public class SameCityUrlUtil {
    private String baseUrl;
    private String account;
    private String password;
    private String secretKey;

    /**
     * 获取同城AccountToken接口
     * @return
     */
    public String getAccountTokenUrl() {
        return baseUrl +"openapi/api/OAuth/v2/GetAccessToken";
    }

    /**
     * 同城添加用户接口
     * @return
     */
    public String getSyncEmployeeInfoUrl() {
        return baseUrl +"openapi/api/Employee/SyncEmployeeInfo";
    }
}
